load("@rules_cc//cc:cc_library.bzl", "cc_library")

cc_library(
    name = "xdiff_hdrs",
    hdrs = glob(["*.h"]),
    strip_include_prefix = "/deps/xdiff",
    visibility = ["//:__subpackages__"],
    deps = ["//src/util:util_hdrs"],
)

cc_library(
    name = "xdiff",
    srcs = glob(["*.c"]),
    visibility = ["//:__subpackages__"],
    deps = [":xdiff_hdrs"],
)
